package com.jnuo.mdb;

import android.text.TextUtils;

import java.io.Serializable;

/**
 * Created by zhangyuncai on 2023/4/7.
 */
public class MdbTubeBean implements Serializable {
    private String credit;
    private String low_level;
    private String tube_count;
    private int num;//数量

    public String getCredit() {
        return credit;
    }

    public void setCredit(String credit) {
        this.credit = credit;
    }

    public String getLow_level() {
        return low_level;
    }

    public void setLow_level(String low_level) {
        this.low_level = low_level;
    }

    public String getTube_count() {
        return tube_count;
    }

    public void setTube_count(String tube_count) {
        this.tube_count = tube_count;
    }

    public int getCreditI() {
        return parseInteger(credit);
    }

    public void setCreditI(int credit) {
        this.credit = credit + "";
    }

    public int getLow_levelI() {
        return parseInteger(low_level);
    }

    public void setLow_levelI(int low_level) {
        this.low_level = low_level + "";
    }

    public int getTube_countI() {
        return parseInteger(tube_count);
    }

    public void setTube_countI(int tube_count) {
        this.tube_count = tube_count + "";
    }

    public int parseInteger(String strIn) {
        int l = 0;
        if (TextUtils.isEmpty(strIn)) {
            return l;
        }
        try {
            l = Integer.parseInt(strIn);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return l;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }
}
